package com.mlk.engSystem.api;

import com.mlk.constant.OK;
import com.mlk.core.util.ServerResponse;
import com.mlk.engSystem.service.EngSystemBannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api("客户端轮播图")
@RequestMapping("/api/system/banner")
@RestController
public class EngSystemBannerAPI {

    @Resource
    private EngSystemBannerService engSystemBannerService;

    @ApiOperation("获取系统轮播图列表（客户端）")
    @GetMapping("list")
    @OK
    public ServerResponse list(){
        return this.engSystemBannerService.apiList();
    }

    @ApiOperation("积分商城轮播图")
    @GetMapping("listBanner")
    @OK
    public ServerResponse listBanner(){
        return this.engSystemBannerService.listBanner();
    }

}
